Defines a table of data.
Releases the state retained by a table when it leaves scope.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(data_table), | intent(inout) | :: | this |
The table being finalized. |
Appends an owned copy of a column to the table.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(data_table), | intent(inout) | :: | this |
The table receiving the column. |
||
| class(data_column), | intent(in) | :: | col |
The column to copy; its row count must match the table. |
Gets the number of columns in the data table.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(data_table), | intent(in) | :: | this |
The table being queried. |
The number of columns.
Gets a borrowed pointer to a stored column without copying it. The pointer survives insertion, but removal of that column or release of the final table/view owner invalidates it.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(data_table), | intent(in) | :: | this |
The table being queried. |
||
| integer(kind=int32), | intent(in) | :: | col |
One-based position of the requested column. |
The stored column; invalid indices cause an error stop.
Inserts an owned copy of a column at the requested position.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(data_table), | intent(inout) | :: | this |
The table receiving the column. |
||
| integer(kind=int32), | intent(in) | :: | index |
One-based insertion position, from one through count plus one. |
||
| class(data_column), | intent(in) | :: | col |
The column to copy; its row count must match the table. |
Removes a column from the table and shifts later positions left.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(data_table), | intent(inout) | :: | this |
The table from which the column is removed. |
||
| integer(kind=int32), | intent(in) | :: | col |
One-based position of the column to remove. |
Gets the number of rows in the data table.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(data_table), | intent(in) | :: | this |
The table being queried. |
The number of rows, or zero when there are no columns.
Creates a live row slice spanning all current and future columns.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(data_table), | intent(inout) | :: | this |
The source table whose shared state is retained. |
||
| integer(kind=int32), | intent(in) | :: | first |
First selected one-based row position. |
||
| integer(kind=int32), | intent(in) | :: | last |
Inclusive final row position. |
A view restricted to the requested row positions.
Creates a live view using optional one-based row and column bounds. Bounds are reapplied to current positions and clipped to the current table shape, so structural edits can change the selected values. Omitted final bounds expand as rows or columns are appended; explicit final bounds remain fixed.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(data_table), | intent(inout) | :: | this |
The source table whose shared state is retained. |
||
| integer(kind=int32), | intent(in), | optional | :: | row_first |
First selected row; defaults to one. |
|
| integer(kind=int32), | intent(in), | optional | :: | row_last |
Inclusive final row; omitted means through the current final row. |
|
| integer(kind=int32), | intent(in), | optional | :: | column_first |
First selected column; defaults to one. |
|
| integer(kind=int32), | intent(in), | optional | :: | column_last |
Inclusive final column; omitted means through the current final column. |
The live positional view.